FROM java:8
ADD ./target/dockerDemo-0.0.1-SNAPSHOT.jar /app/app.jar
RUN chmod a+x /app/app.jar
RUN mkdir /logs
VOLUME /tmp
CMD ["nohup", "java", "-jar", "/app/app.jar", ">/dev/null", "2>&1", "&"]
